import httpUtil from '../httpUtil'
import util from '@/assets/js/util.js'
const baseUrl = import.meta.env.VITE_DOMAIN_PATH

// 查询所有房东数据
export function getAllOwnerList (params) {
  return httpUtil.getAction('/api/sysOwner?' + util.jsonToString(params))
}

// 新增
export function addOwnerInfo (params) {
  return httpUtil.postAction('/api/sysOwner', params)
}

// 编辑
export function editOwnerInfo (params) {
  return httpUtil.putAction('/api/sysOwner', params)
}

// 删除
export function deleteOwnerInfo (params) {
  return httpUtil.getAction(`/api/sysOwner/delete/${params.id}`)
}

